<div class='form'>
  <% form_for @pcate  do |f| %>
    <%= f.error_messages %>
    <p>
      <label for="pcate_name">名称</label>
      <%=  f.text_field  :name,:size=>20 %>
    </p>

    <p>
      <label for="pcate_parent_id">父类</label>
      <%=  f.select(:parent_id,pcate_options,{:include_blank => true} ) %>
    </p>

    <p>
      <label for="pcate_active">可用</label>
      <%= f.check_box :active %>
    </p>
    <p>
      <%= f.submit button_name,:class=>'submit' %>
    </p>
  <% end %>
</div>